CC      =arm-linux-gnueabihf-g++
#CC      = g++


CFLAGS   = -O3 -Wall -fkeep-inline-functions

INCPATH  = -I ./include/BasicUsageEnvironment -I ./include/groupsock -I./include/liveMedia -I./include/UsageEnvironment

LIBS     =-L../lib -lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment -pthread -lrt -shared
OBJECTS_DIR = ./
TARGET=libLiveServer.so
all:
	$(CC)  $(CFLAGS)  $(INCPATH) -c LiveServer/DynamicRTSPServer.cpp LiveServer/live555MediaServer.cpp Interface.cpp 
	$(CC)  $(CFLAGS)  $(INCPATH) -c LiveServer/ByteStreamLiveSource.cpp LiveServer/H264VideoLiveServerMediaSubsession.cpp LiveServer/LiveServer.cpp
	$(CC)  $(LINKOBJ) -o libLiveServer.so DynamicRTSPServer.o live555MediaServer.o H264VideoLiveServerMediaSubsession.o ByteStreamLiveSource.o LiveServer.o Interface.o $(LIBS)
	rm -rf *.o
	cp HY_LiveServer.h ../bin
	cp libLiveServer.so ../bin
clean:
	rm -rf demo *.o 